ALMaSS  1.0
The Animal, Landscape and Man Simulation System
FarmEvent Struct Reference

A struct to hold the information required to trigger a farm event. More...

#include <farm.h>

Public Member Functions

 FarmEvent (TTypesOfVegetation a_event, LE *a_field, int a_todo, long a_run, bool a_lock, int a_start, bool a_first_year, TTypesOfVegetation a_nextcrop)

Public Attributes

bool m_lock
int m_startday
bool m_first_year
long m_run
int m_todo
TTypesOfVegetation m_event
TTypesOfVegetation m_next_tov

Detailed Description

A struct to hold the information required to trigger a farm event.

Constructor & Destructor Documentation

◆ FarmEvent()

FarmEvent::FarmEvent ( TTypesOfVegetation  a_event,
LE a_field,
int  a_todo,
long  a_run,
bool  a_lock,
int  a_start,
bool  a_first_year,
TTypesOfVegetation  a_nextcrop 
477  {
478  m_event = a_event;
479  m_field = a_field;
480  m_todo = a_todo;
481  m_run = a_run;
482  m_lock = a_lock;
483  m_startday = a_start;
484  m_first_year = a_first_year;
485  m_next_tov=a_nextcrop;
486  }
TTypesOfVegetation m_event
Definition: farm.h:470
bool m_lock
Definition: farm.h:465
LE * m_field
Definition: farm.h:472
bool m_first_year
Definition: farm.h:467
int m_todo
Definition: farm.h:469
int m_startday
Definition: farm.h:466
long m_run
Definition: farm.h:468
TTypesOfVegetation m_next_tov
Definition: farm.h:471

References m_event, m_field, m_first_year, m_lock, m_next_tov, m_run, m_startday, and m_todo.

Member Data Documentation

◆ m_event

TTypesOfVegetation FarmEvent::m_event

Referenced by FarmEvent(), and Farm::LeSwitch().

◆ m_field

◆ m_first_year

bool FarmEvent::m_first_year

Referenced by FarmEvent().

◆ m_lock

bool FarmEvent::m_lock

Referenced by FarmEvent().

◆ m_next_tov

TTypesOfVegetation FarmEvent::m_next_tov

Referenced by FarmEvent().

◆ m_run

long FarmEvent::m_run

Referenced by FarmEvent(), and Farm::LeSwitch().

◆ m_startday

int FarmEvent::m_startday

Referenced by FarmEvent().

◆ m_todo

int FarmEvent::m_todo

Referenced by FarmEvent(), and Farm::LeSwitch().

The documentation for this struct was generated from the following file: